package com.basin.common.bus.event;

import jakarta.annotation.Resource;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Component;

/**
 * @author: Sam ZHONG | sammy1997@aliyun.com
 */
@Component
public class BasinBusPublisher {

    @Resource
    private ApplicationEventPublisher applicationEventPublisher;

    public <T> void publish(BasinBusEvent<T> event) {
        applicationEventPublisher.publishEvent(event);
    }
}
